package tk.heimashuma.store.entity.es;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import tk.heimashuma.store.entity.dto.State;

import javax.persistence.Id;
import java.util.Date;

@Document(indexName = "commodity",type = "doc")
@Data
public class EsCommodity {
    @Id
    private String id;
    @Field
    private String create_date;
    @Field
    private String images;
    @Field
    private String info;
    @Field
    private Float price;
    @Field
    private String title;
    @Field
    private Integer type_id;
    @Field
    private Long sales_volume;
    @Field
    private Long repertory;
    @Field
    private float score;
    @Field
    private Long cid;
}
